@model Campus.Entities.PagoMensual
@* This partial view defines form fields that will appear when creating and editing entities *@
<div class="control-group">
    <div class="control-label">
       <label> Actividad</label>
    </div>
    <div class="controls">
        @if (Model.ActividadId == 0)
        {
            @Html.DropDownListFor(model => model.ActividadId, ((IEnumerable<Campus.Entities.Actividad>)ViewBag.PossibleActividads).Select(option => new SelectListItem
       {
           Text = (option == null ? "None" : option.Nombre),
           Value = option.ActividadId.ToString(),
           Selected = (Model != null) && (option.ActividadId == Model.ActividadId)
       }), "Elegir...")
            @Html.ValidationMessageFor(model => model.ActividadId)
        }
        else
        {
            <p>@ViewBag.PossibleActividads[0].Nombre</p>
        }
    </div>
</div>
<div class="label-group">
    <div class="control-label">
        @Html.LabelFor(model => model.Estudiante.TotalAdeudado)
    </div>
    <div class="controls">
        <p>@Html.DisplayFor(model => model.Estudiante.TotalAdeudado)</p>
    </div>
</div>
<div class="label-group">
    <div class="control-label">
        @Html.LabelFor(model => model.Monto)
    </div>
    <div class="controls">
        <p>@Html.DisplayFor(model => model.Monto)</p>
        @Html.HiddenFor(model => model.Monto)
        @*Html.EditorFor(model => model.Monto)
        @Html.ValidationMessageFor(model => model.Monto)
        *@
    </div>
</div>
<div class="control-group">
    <div class="control-label">
        <label>Fecha Ultimo Pago</label>
    </div>
    <div class="controls">
        @Html.EditorFor(model => model.FechaDePago)
        @Html.ValidationMessageFor(model => model.FechaDePago)
    </div>
</div>
<div class="control-group">
    <div class="control-label">
        @Html.LabelFor(model => model.Mes)
    </div>
    <div class="controls">
        
        <p>
        @((Model.Mes == null || Model.Mes == 0)?"No hay pagos pendientes" : System.Globalization.DateTimeFormatInfo.CurrentInfo.MonthNames[Model.Mes - 1] )
        </p>
        @Html.HiddenFor(model => model.Mes)
       
    </div>
</div>
<div class="control-group">
    <div class="control-label">
        @Html.LabelFor(model => model.Notas)
    </div>
    <div class="controls">
        @Html.TextAreaFor(model => model.Notas, new { cols = 25, @rows = 5 })
        @Html.ValidationMessageFor(model => model.Notas)
    </div>
</div>
@*<div class="control-group">
	<div class="control-label">
    Estudiante
</div>
<div class="controls">
    @Html.DropDownListFor(model => model.EstudianteId, ((IEnumerable<Campus.Entities.Estudiante>)ViewBag.PossibleEstudiantes).Select(option => new SelectListItem {
        Text = (option == null ? "None" : option.Apellido), 
        Value = option.EstudianteId.ToString(),
        Selected = (Model != null) && (option.EstudianteId == Model.EstudianteId)
    }), "Elegir...")
    @Html.ValidationMessageFor(model => model.EstudianteId)
</div>
</div>*@
@Html.HiddenFor(model => model.EstudianteId)
@Html.HiddenFor(model => model.ActividadId)